﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WPFTools.Controls
{
    
    public class FRadioButton : RadioButton
    {
        static FRadioButton()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(FRadioButton), new FrameworkPropertyMetadata(typeof(FRadioButton)));
        }

      
        public static readonly DependencyProperty FIconSizeProperty =
              DependencyProperty.Register("FIconSize", typeof(double), typeof(FRadioButton), new PropertyMetadata(20.0));
        /// <summary>
        /// 按钮字体图标大小
        /// </summary>
        public double FIconSize
        {
            get { return (double)GetValue(FIconSizeProperty); }
            set { SetValue(FIconSizeProperty, value); }
        }

        public static readonly DependencyProperty FIconMarginProperty = DependencyProperty.Register(
                "FIconMargin", typeof(Thickness), typeof(FRadioButton), new PropertyMetadata(new Thickness(0, 1, 3, 1)));
        /// <summary>
        /// 字体图标间距
        /// </summary>
        public Thickness FIconMargin
        {
            get { return (Thickness)GetValue(FIconMarginProperty); }
            set { SetValue(FIconMarginProperty, value); }
        }
    }
}
